#include <iostream>
#include "shm.h"

using namespace std;

int main()
{
	read_shm reader;
	if(reader.init() != 0){
		cout <<"read init error" << endl;
		return -1;
	}
	cout <<"reader init success" << endl;
	reader.status();
	//reader.read_status();
	reader.read_info(0, 10);

	char temp[10] = {0};
	reader.copy_info(temp, 0, 10);
	cout << "copy memory :" << temp << endl;
	return 0;
}

